export type OptionValue = string | number;
import type { Writable } from 'svelte/store';
export type Option = {
  label: string;
  value?: OptionValue;
} | string;

export type RadioContext = {
  name: string;
  activeRadioValue$: Writable<OptionValue>;
  addRadio: (opt: Option) => number;
}